package com.shop.loan.model.vo;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.Search;

import javax.persistence.Transient;

@Erupt(name = "生成快递回执单")
@Getter
@Setter
public class LogisticsReceiptVo extends HyperModelCreatorBaseVo {


    @Transient
    @EruptField(
            views = @View(title = "设备串码"),
            edit = @Edit(title = "设备串码", desc = "若订单设备串码已填写，这里可为空", type = EditType.TEXTAREA)
    )
    private String goodsImei;


    @EruptField(
            views = @View(title = "是否生成电子签"),
            edit = @Edit(
                    title = "是否生成电子签",
                    search = @Search,
                    type = EditType.BOOLEAN
            )
    )
    private Boolean createSign = false;

}
